﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Discuz.Toolkit;

namespace Icst.Leaflike.Web
{
    public partial class site : System.Web.UI.MasterPage
    {
        public bool IsLogon { get { return Session.UserData().IsUserLogon; } }
        public bool IsAdmin { get { return Session.UserData().IsUserAdmin; } }
        public string UserName { get { return Session.UserData().UserName; } }
        public long UserId { get { return Session.UserData().UserId; } }
        public string ForumAdminSite { get { return Configuration.forum_admin; } }
        public string CurrentVersion
        { 
            get 
            {
                switch (Session.UserData().Version)
                {
                    case Version.Professional: return "专业版";
                    case Version.Public: return "大众版";
                    default: return "";
                }
            } 
        }
    }
}
